home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / missave.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  3.0 KB  |  134 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    samesave_dialogId ;
  9. extern int    samesave_btnId[2] ;
  10. extern int    igo_savesave_cancel() ;
  11. extern int    igo_samesave_set() ;
  12.  
  13. #define ALIGN    4
  14. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  15.  
  16. /*    MMI_init 用データ    */
  17.  
  18. /*    ヘッダ    */
  19.  
  20. MMIINIT    initDataMISSAVE = { "MmiInit",   7, 0 } ;
  21.  
  22. /* samesave_dialogId */
  23.  
  24. static MMIPACKET d001 = {    &samesave_dialogId,
  25.                             NULL,
  26.                             &MJ_DIALOGL40,
  27.                             OFFSET(DIALOGL40),
  28.                             MS_NONE
  29.                         } ;
  30. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  31.                              191, 124, 437, 215, 8, 7, 8,
  32.                             MS_SRECTL40 | MS_FRAMEL40,
  33.                             NULL,   0,   0
  34.                         } ;
  35.  
  36. /* NULL */
  37.  
  38. static MMIPACKET d002 = {    NULL,
  39.                             &samesave_dialogId,
  40.                             &MJ_MSGL40,
  41.                             OFFSET(MSGL40),
  42.                             MS_NONE
  43.                         } ;
  44. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  45.                              208, 132, 419, 150, 8,15, 8,
  46.                             MS_NONEL40,
  47.                             "同名ファイルがあります",
  48.                                1,  12,  12,
  49.                             MS_NONEL40,
  50.                                5,   0
  51.                         } ;
  52.  
  53. /* NULL */
  54.  
  55. static MMIPACKET d003 = {    NULL,
  56.                             &samesave_dialogId,
  57.                             &MJ_MSGL40,
  58.                             OFFSET(MSGL40),
  59.                             MS_NONE
  60.                         } ;
  61. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  62.                              208, 151, 419, 169, 8,15, 8,
  63.                             MS_NONEL40,
  64.                             "保存しますか",
  65.                                1,  12,  12,
  66.                             MS_NONEL40,
  67.                                5,   0
  68.                         } ;
  69.  
  70. /* samesave_btnId[1] */
  71.  
  72. static MMIPACKET d004 = {    &samesave_btnId[1],
  73.                             &samesave_dialogId,
  74.                             &MJ_DBUTTONL40,
  75.                             OFFSET(DBUTTONL40),
  76.                             MS_NONE
  77.                         } ;
  78. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  79.                              324, 182, 403, 207,10, 7, 8,
  80.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  81.                             igo_savesave_cancel,
  82.                             0x0000
  83.                         } ;
  84.  
  85. /* samesave_btnId[0] */
  86.  
  87. static MMIPACKET d005 = {    &samesave_btnId[0],
  88.                             &samesave_dialogId,
  89.                             &MJ_DBUTTONL40,
  90.                             OFFSET(DBUTTONL40),
  91.                             MS_NONE
  92.                         } ;
  93. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  94.                              217, 181, 296, 206, 4, 7, 8,
  95.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  96.                             igo_samesave_set,
  97.                             0x0000
  98.                         } ;
  99.  
  100. /* NULL */
  101.  
  102. static MMIPACKET d006 = {    NULL,
  103.                             &samesave_dialogId,
  104.                             &MJ_MSGL40,
  105.                             OFFSET(MSGL40),
  106.                             MS_NONE
  107.                         } ;
  108. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  109.                              224, 184, 291, 204, 8,15, 8,
  110.                             MS_NONEL40,
  111.                             "実行",
  112.                                1,  12,  12,
  113.                             MS_NONEL40,
  114.                                5,   0
  115.                         } ;
  116.  
  117. /* NULL */
  118.  
  119. static MMIPACKET d007 = {    NULL,
  120.                             &samesave_dialogId,
  121.                             &MJ_MSGL40,
  122.                             OFFSET(MSGL40),
  123.                             MS_NONE
  124.                         } ;
  125. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  126.                              329, 186, 396, 206, 8,15, 8,
  127.                             MS_NONEL40,
  128.                             "取消",
  129.                                1,  12,  12,
  130.                             MS_NONEL40,
  131.                                5,   0
  132.                         } ;
  133.  
  134.